<include file="Common:header" />
<!-- /. NAV SIDE  -->
<include file="Common:left" />
<!-- /. NAV SIDE  -->
<div id="page-wrapper">
	   <div class="header">
         <h1 class="page-header">
            产品管理 <small>Welcome {$Think.config.system_tag}</small>
         </h1>
         <ol class="breadcrumb">
            <li><a href="{:U('Index/index')}">首页</a></li>
            <li><a href="{:U('Goods/editGoodsList')}">商品列表</a></li>
            <li class="active">导入商品</li>
            <div style="float:right"><a href="javascript:history.go(-1);">返回</a></div>
         </ol> 
	   </div>
		<div class="row">
			<div class="col-xs-12">
				<!--Search content-->
				<div class="panel panel-default" style="margin-bottom:0px; border-bottom:none">
					<div class="panel-body">
						<if condition="isset($success)">
							<div class="alert alert-success">{$success}</div>
						<elseif condition="isset($error)"/>
							<div class="alert alert-danger" style="max-height:200px; overflow-y:auto">{$error}</div>
						</if>
						<form class="layui-form" action="__URL__/importProduct" enctype="multipart/form-data" method="post">
							<div class="layui-form-item">
								<label class="layui-form-label"></label>
								<div class="layui-input-block" style="margin-left:30px;">
								  <input type="file" name="file" required  lay-verify="required"/>
								</div>
							</div>
							<div class="layui-form-item">
								<div class="layui-input-block">
								  <button class="layui-btn" lay-submit lay-filter="formDemo">开始上传</button>
								</div>
							</div>
						</form>
					</div>
				</div>
				<!--Search content-->
			</div>
		</div>
	</div>
	<include file="Common:foot" />
	 <!-- /. PAGE INNER  -->
	 <script>
		layui.use('form', function(){
			var form = layui.form
			,$ = layui.jquery;
			form.on('submit(formDemo)', function(data){
				$('form').submit();
			});
		});
	</script>
</div>
<include file="Common:footer" />
    